package com.jjkj.base.exception;

import com.jjkj.base.common.ResultCode;
import io.jboot.exception.JbootException;

/**
 * 业务异常
 * @author Rlax
 *
 */
public class BusinessException extends JbootException {

	private int code = ResultCode.ERROR;

	public BusinessException() {
		super();
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(int code, String message) {
		super(message);
		this.code = code;
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	protected BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public int getCode() {
		return code;
	}
}
